package grammar;

public class MyError {
    public final Integer line;
    public final Character errorCode;

    public MyError(Integer line, Character errorCode) {
        this.line = line;
        this.errorCode = errorCode;
    }

    public MyError(Integer line, Character errorCode, String message) {
        this.line = line;
        this.errorCode = errorCode;
    }

    @Override
    public String toString() {
        return line + " " + errorCode + "\n";
    }
}
